package newTest.test10;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DaoFactory {
	@Bean
	public  UserDao userDao(){

		return new UserDao(connectionMaker());
	}
	@Bean
	public ConnectionMaker connectionMaker(){
		return new DUserDao();
	}

}